#include<cstdio>
#include<iostream>
#include<algorithm>
#include<functional>

using namespace std;
int main(){
    int a[10] = {7, 4, 5, 23, 2, 73, 41, 52, 28, 60}, i;
    for(i = 0; i<10;i++){
        cout<<a[i]<<" ";
    }

    cout<<endl;

    sort(a, a + 10, greater<int>());

    for(i=0;i<10;i++){
        cout<<a[i]<<" ";
    }

    return 0;
}